/*
 * @Descripttion: 文件说明
 * @version: 0.0.1
 * @Author: gaojiapeng
 * @Date: 2021-02-25 09:47:51
 * @LastEditors: gaojiapeng
 * @LastEditTime: 2021-02-26 08:42:35
 */
exports.install = function (Vue, options) {
  Vue.prototype.$IfEquipment = function () {
    //全局函数1
    if (/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
      return "Mobile";
    } else {
      return "Pc";
    }
  };
  Vue.prototype.$numLength = function (num, n = 2) {
    var tbl = [];
    var len = n - num.toString().length;
    if (len <= 0) return num;
    if (!tbl[len]) tbl[len] = new Array(len + 1).join("0");
    return tbl[len] + num;
  };
};


